package com.wonders.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wonders.dto.Result;
import com.wonders.entity.Shop;

/**
 * 功能描述:店铺相关的服务接口层
 * @Author: yyalin
 * @CreateDate: 2023/8/17 16:54
 */
public interface IShopService extends IService<Shop> {
    /**
     * 功能描述:将商店的信息批量添加到redis中
     * @MethodName: shopDataToRedis
     * @MethodParam: []
     * @Return: void
     * @Author: yyalin
     * @CreateDate: 2023/8/17 17:12
     */
    void shopDataToRedis();
    /**
     * 功能描述:根据商铺类型基于Redis的Geo实现附近商铺分页查询
     * @MethodName: queryShopByType
     * @MethodParam: [typeId, current, x, y]
     * @Return: com.wonders.dto.Result
     * @Author: yyalin
     * @CreateDate: 2023/8/17 17:02
     */
    Result queryShopByType(Integer typeId, Integer current, Double x, Double y);
}
